<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>快招</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="/public/js/mui/css/mui.min.css">
    <link rel="stylesheet" href="/public/weixin/css/iconfont/iconfont.css" />
    <link rel="stylesheet" href="/public/weixin/css/css/index.css">
    <style>
        .mui-bar-nav{
            box-shadow: none;
        }
    </style>
</head>
<body>
    <header class="mui-bar mui-bar-nav">
        <h1 class="mui-title">员工中心</h1>
    </header>
    <div class="mui-content">
        <div class="own_user_center_top" id="user_head">
            <div class="own_user_center_headimg">
                <img src="<?php echo ($user["headimgurl"]); ?>" alt="快招">
            </div>
            <div class="own_user_center_name">
                <?php echo ($user["nickname"]); ?>
            </div>
            <div class="own_user_center_">
                    <?php echo ($jobDesc); ?>
            </div>
        </div>

        <div class="mui-table-view" id="user_center">
            <div class="mui-table-view-cell " id="borrow">
                <span class="iconfont">
                    &#xe77a;
                </span>
                我要借支
                <span class="own_lt_number mui-badge mui-badge-danger" id="user_invite_count"><?php echo ($borrowCount); ?></span>
            </div>
            
<!--            <div class="mui-table-view-cell " id="myCard">
                <span class="iconfont">
                    &#xe7c6;
                </span>
                我的银行卡
                <span class="own_lt_number mui-badge mui-badge-danger" id="cardNum"><?php echo ($cardNum); ?></span>
            </div> -->
            
            <div class="mui-table-view-cell " id="user_detail">
                <span class="own_lt_icon iconfont">&#xe792;</span>
                个人信息
            </div>

            <div class="mui-table-view-cell " id="pick_point">
                <span class="own_lt_icon iconfont">&#xe781;</span>
                接车点
            </div>
        </div>
    </div>
    <script src="/public/js/mui/js/mui.js"></script>
    <script type="text/javascript">
        mui("#user_center").on('tap', '#borrow', function() {
            window.location.href = "<?php echo U('User/borrowRquestIndex');?>";
        });
        mui("#user_center").on('tap', '#user_detail', function() {
            window.location.href = "<?php echo U('User/personInfo');?>";
        });
/*         mui("#user_center").on('tap', '#myCard', function() {
        	window.location.href="<?php echo U('User/bank_list','user_type=2');?>";
        });  */
        mui("#user_head").on('tap', '.own_user_center_headimg', function() {
            window.location.href = "<?php echo U('User/personInfo');?>";
        });
        mui("#user_center").on('tap', '#pick_point', function() {
            window.location.href = "<?php echo U('User/pick_point');?>";
        });
    </script>
</body>
</html>